]> dgit.raspbian.org Git - gnome-shell.git/commit
st/texture-cache: Cancel pending requests on icon-theme changes
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 May 2020 20:53:39 +0000 (22:53 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 25 May 2020 10:55:28 +0000 (12:55 +0200)
commitd81237b9d60e1cf95266533458598055dd93e4aa
tree7824550de6fb3a1ea73277fb2adfce84209dc346
parent71b3b03b2fa36980afd8628c9d14925965728c48
st/texture-cache: Cancel pending requests on icon-theme changes

As outlined in commit 36b8dcbe07, we can end up with wrong icons
if the icon theme changes right after a GTK theme change to/from
HighContrast triggered a theme reload.

That's because when we reload icons for the new icon theme, there
are already pending requests due to the icon-style change; those
requests are simply re-used for the new icons, with the existing
icon infos from the old theme.

The above commit applied a simple work-around by changing the
icon theme before the GTK theme, but that only works for the
HighContrast switch in our own UI.

It turns out that Settings also uses the "wrong" order, so the
issue still reproduces with the Universal Access panel.

So instead of relying on everything changing the settings in the
order we expect, cancel all ongoing requests on icon-theme changes.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1277
src/st/st-texture-cache.c